function getRem(prem, pwidth) {
    var html = document.getElementsByTagName("html")[0];
    var oWidth = $(window).width()||document.body.clientWidth || document.documentElement.clientWidth;
    html.style.fontSize = oWidth / pwidth * prem + "px";
    return oWidth / pwidth * prem;
}
